import {designPage} from "@peryl/react-compose";
import {useTableOption} from "../../modules/plain-design/useTableOption";
import {AutoTable, PlcDate, PlcInput} from "plain-design";

export default designPage(() => {

  const option = useTableOption({
    url: '/ov',
    fill: true,
  });

  return () => <>
    <AutoTable option={option}>
      <PlcInput title="显示值" field="name"/>
      <PlcInput title="代码" field="code"/>
      <PlcInput title="类型" field="type"/>
      <PlcDate title="创建时间" field="createdAt" hideInForm width={180} editable={false} datetime/>
      <PlcInput title="说明" field="comment"/>
    </AutoTable>
  </>;
});
